map user to ConnectionId SignalR

69

map user to ConnectionId SignalR -

public class MyHub: Hub
{
    public override Task OnConnected()
    {
        Groups.Add(Context.ConnectionId, Context.User.Identity.Name)

        return base.OnConnected();
    }
}

Comments

Submit
0 Comments